package com.shuhua.taskServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuhua.pojo.entity.DirOrder;
import com.shuhua.taskServer.mapper.DirOrderMapper;
import com.shuhua.taskServer.service.DirOrderService;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class DirOrderServiceImpl extends ServiceImpl<DirOrderMapper, DirOrder> implements DirOrderService {
    @Override
    public Map<String, Object> getDirOrderWithTask(Long adminId, Long taskId, Long craftsmanId) {
        return this.baseMapper.selectDirOrderWithTask(adminId, taskId, craftsmanId);
    }

    @Override
    public List<Map<String, Object>> getAllDirOrderWithTask() {
        return this.baseMapper.selectAllDirOrderWithTask();
    }

    @Override
    public List<Map<String, Object>> getDirOrderWithTaskByCraftsmanId(Long craftsmanId) {
        return this.baseMapper.selectDirOrderWithTaskByCraftsmanId(craftsmanId);
    }
} 